<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="author" content="lijun; 67086071; zwlijun@qq.com" />
<title> New Document </title>
<script src="../core.js" type="text/javascript"></script>
<script src="validator.js" type="text/javascript"></script>
</head>

<body>
<input type="text" id="t1" /> <br />
<input type="text" id="t2" /> <br />
<input type="text" id="t3" /> <br />
<input type="text" id="t4" /> <br />
<input type="text" id="t5" /> <br />
<script type="text/javascript">
function fnT1(ret){
  console.info("fnT1 : empty = " + ret.empty + "; null = " + ret.nul + "; undefined = " + ret.undefine + "; match = " + ret.match + "; value = " + this.value);
}
function fnT2(ret){
 console.info("fnT2 : empty = " + ret.empty + "; null = " + ret.nul + "; undefined = " + ret.undefine + "; match = " + ret.match + "; value = " + this.value);
}
function fnT3(ret){
  console.info("fnT3 : empty = " + ret.empty + "; null = " + ret.nul + "; undefined = " + ret.undefine + "; match = " + ret.match + "; value = " + this.value);
}
function fnT4(ret){
  console.info("fnT4 : empty = " + ret.empty + "; null = " + ret.nul + "; undefined = " + ret.undefine + "; match = " + ret.match + "; value = " + this.value);
}
function fnT5(ret){
  console.info("fnT5 : empty = " + ret.empty + "; null = " + ret.nul + "; undefined = " + ret.undefine + "; match = " + ret.match + "; value = " + this.value);
}

XLib.V.bind([
  {id:"t1", type:XLib.V.Types.INT, events:"blur|keyup", handler:fnT1, args:[]},
  {id:"t2", type:XLib.V.Types.MOBILE, events:"blur", handler:fnT2, args:[]},
  {id:"t3", type:XLib.V.Types.EMAIL, events:"blur", handler:fnT3, args:[]},
  {id:"t4", type:XLib.V.Types.CNID, events:"blur", handler:fnT4, args:[]},
  {id:"t5", type:XLib.V.Types.UINT, events:"blur", handler:fnT5, args:[]}
]);
/*
XLib.V.unbind([
  {id:"t1", type:XLib.V.Types.INT, events:"blur|keyup", handler:fnT1, args:[]},
  {id:"t2", type:XLib.V.Types.MOBILE, events:"blur", handler:fnT2, args:[]}
]);
*/
</script>
</body>
</html>
